from DebugTrace import DebugTrace
#
# Heater stub
# Just stores whether heater is on or off,
# and allows enabling and disabling
# 1 is on, 0 is off
#
class HeaterStub(object):
	def __init__(self,traceLevel=1):
		self.currentState=0
		self.trace=DebugTrace("Heater",traceLevel)
	def enableHeater(self):
		self.currentState=1
		self.trace.trace(2,"Heater enabled")
	def disableHeater(self):
		self.currentState=0
		self.trace.trace(2,"Heater disabled")
	def getHeaterState(self):
		return self.currentState
